//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Resource Application Block
//===============================================================================

using System;
using System.Management.Instrumentation;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Manageability;

namespace EntLibContrib.Resource.Configuration.Manageability
{
	/// <summary>
	/// Represents the configuration information from a 
	/// <see cref="EntLibContrib.Resource.Configuration.AssemblyResourceProviderData"/> instance.
	/// </summary>
	/// <seealso cref="EntLibContrib.Resource.Configuration.AssemblyResourceProviderData"/>
	/// <seealso cref="ResourceProviderSetting"/>
	[InstrumentationClass(InstrumentationType.Instance)]
	public class AssemblyResourceProviderSetting : ResourceProviderSetting
	{
		#region Fields
		private String resourceAssemblyName;
		#endregion

		#region Properties
		/// <summary>
		/// Gets the name of the assembly for the represented configuration object.
		/// </summary>
		/// <value>The name of the resource assembly.</value>
		/// <seealso cref="EntLibContrib.Resource.Configuration.AssemblyResourceProviderData.ResourceAssemblyName">AssemblyResourceProviderData.ResourceAssemblyName</seealso>
		public String ResourceAssemblyName
		{
			get { return resourceAssemblyName; }
			internal set { resourceAssemblyName = value; }
		}
		#endregion

		#region Construction
		/// <summary>
		/// Initializes a new instance of the <see cref="AssemblyResourceProviderSetting"/> class.
		/// </summary>
		/// <param name="name">The name.</param>
		/// <param name="resourceAssemblyName">Name of the resource assembly.</param>
		/// <param name="resourceBaseName">Name of the resource base.</param>
		internal AssemblyResourceProviderSetting(String name, String resourceAssemblyName, String resourceBaseName)
			: base(name, resourceBaseName)
		{
			this.resourceAssemblyName = resourceAssemblyName;
		}
		#endregion
	}
}
